﻿using Morus;

namespace KAKA.Domain
{
    public partial class Setting : IAggregateRoot
    {
        public const string NAME_SITE_TITLE = "SiteTitle";
        public const string NAME_META_KEY = "MetaKey";
        public const string NAME_META_DESCRIPTION = "MetaDescription";
        public const string NAME_DICTIONARY_INITIALIZED = "DictionaryInitialized";
        public const string NAME_SETTING_INITIALIZED = "SettingInitialized";
        public const string NAME_REGISTRY_SMS_SERVICE_INITIALIZED = "RegistrySmsServiceInitialized";
        public const string NAME_VERIFICATION_CODE_DURATION = "VerificationCodeDuration";
        public const string NAME_ONE_HOUR_ALLOWED_TEXT_MESSAGE_COUNT = "OneHourAllowedTextMessageCount";
        public const string NAME_ONE_DAY_ALLOWED_TEXT_MESSAGE_COUNT = "OneDayAllowedTextMessageCount";
        public const string NAME_EMAIL_ADDRESS = "EmailAddress";
        public const string NAME_ROOT_URL = "RootUrl";

        public Setting()
        {
        }

        public Setting(string name, string value)
        {
            Name = name;
            Value = value;
        }

        public Setting(string name, object value)
        {
            Name = name;
            Value = value.ToString();
        }
    }
}
